<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">

    <form class="well form-inline margin-top-20" method="get" action="{:url('Task/delIdentifier')}">
        <!--    接受人:
            <input type="text" class="form-control "  name="user_nickname" style="width: 120px;" value="{:input('request.user_nickname/s','')}" >-->
        任务标识:
        <input type="text" class="form-control "  name="identifier" style="width: 120px;" value="" >
        <input type="submit" class="btn btn-primary" value="批量删除" />
    </form>
    <form class="well form-inline margin-top-20" method="get" action="{:url('Task/delIdentifier')}">
        ID:
        <input type="text" class="form-control "  name="taskid" style="width: 120px;" value="" >
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>任务标题</th>
            <th>项目</th>
            <th>任务标识</th>
            <th>任务发起人</th>
            <th>创建时间</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>完成时间</th>
            <th width="140">分数</th>
            <th width="140">状态</th>
            <th width="70">转移</th>
            <th width="70">编辑</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.task_id}</td>
                <td><a href="{:url('Task/taskDeatil',['taskid'=>$vo.task_id])}">{$vo.task_title}</a></td>
                <td>{$vo.task_project_id}</td>
                <td>{$vo.identifier}</td>
                <td>{$vo.user_nickname}</td>
                <td>{$vo.task_submit_time|date="Y-m-d H:i:s"}</td>
                <td>{$vo.task_start_time|date="Y-m-d H:i:s"}</td>
                <td>{$vo.task_end_time|date="Y-m-d H:i:s"}</td>
                <td>{$vo.task_complete_time? date("Y-m-d H:i:s",$vo.task_complete_time) : ""}</td>
                <td>{$vo.task_mark}</td>
                <td>
                    <switch name="vo.task_status">
                        <case value="0">
                            <span class="label label-danger">待办</span>
                        </case>
                        <case value="1">
                            <span class="label label-success">进行</span>
                        </case>
                        <case value="2">
                            <span class="label label-info">提交</span>
                        </case>
                        <case value="3">
                            <span class="label label-primary">完成</span>
                        </case>
                        <case value="4">
                            <span class="label label-primary">逾期</span>
                        </case>
                        <case value="5">
                            <span class="label label-primary">驳回</span>
                        </case>
                        <case value="10">
                            <span class="label label-warning">关闭</span>
                        </case>
                    </switch>
                </td>

                <td>
                    <a class="btn btn-xs btn-danger " href="{:url('Task/taskTransfer',['taskid'=>$vo.task_id])}">转移</a>
                </td>
                <td>
                    <a class="btn btn-xs btn-danger " href="{:url('Task/edit',['taskid'=>$vo.task_id])}">编辑</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$list->render()} <li class="page-item"><a class="page-link" href="javascript:void(0)">共{$list->total()}条</a></li></div>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

</script>
</body>
</html>